package com.prd.api;

import com.prd.api.factory.RemoteUserFallbackFactory;
import com.prd.model.EntInvite;
import com.prd.util.Remote;
import com.prd.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 用户服务
 */
@FeignClient(contextId = "RemoteUserService", value = "prd-user", fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteUserService {

    /**
     * 用户个人信息查询
     *
     * @return
     */
    @GetMapping("/api/user/v1/listInfo/{ids}")
    public Remote<List<UserVo>> listInfo(@PathVariable("ids") Long[] ids);
}
